GDK W32: Fix idiotic gdk_win32_display_get_monitor() implementation
authorРуслан Ижбулатов <lrn1986@gmail.com>
Fri, 20 Jan 2017 09:08:41 +0000 (09:08 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:22 +0000 (10:38 +0000)
commitf7ae36739ad054f029c27d766197d167ea970c87
treea2eaf2665e9284a1a24385a3a7eabff81f756a29
parentc36d66bdb6fedba0d1c09a772b4eae9c6bcb3b23
GDK W32: Fix idiotic gdk_win32_display_get_monitor() implementation

Replace the code borrowed from the X11 backend with the code borrowed from Wayland backend. Now GTK doesn't crash when the number of monitors is zero.
gdk/win32/gdkdisplay-win32.c